package com.xywl.escort.view.order.delivery;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.DeliveryOrderResp;
import com.xywl.escort.bean.ProjectLogisticsResp;

public interface DeliveryOrderContract {

    interface Presenter extends BasePresenter {
        void takeView(DeliveryOrderContract.View view);

        void loadOrderList(int pageNum);

        void delOrder(String id, int position);

        void remindOrder(String id);

        void confirmReceipt(String id);

        void logisticsOrder(String id);
    }

    interface View extends BaseView<Presenter> {

        void loadOrderListSuccess(DeliveryOrderResp.DataBean dataBean);

        void loadOrderListFailure();

        void delOrderSuccess(BaseResp resp, int position);

        void delOrderFailure(String msg);

        void remindOrderSuccess(BaseResp resp);

        void remindOrderFailure(String msg);

        void confirmReceiptSuccess(BaseResp resp);

        void confirmReceiptFailure(String msg);

        void logisticsOrderSuccess(ProjectLogisticsResp.DataBean dataBean);

        void logisticsOrderFailure(String msg);
    }
}
